package com.xyoto.community.service;

import com.xyoto.community.entity.main.AnonymousUser;

import java.util.List;

/**
 * @author coderFu
 * @create 2021/11/14
 */

public interface AnonymousCacheService {

    /**
     * 获取匿名用户列表信息,用于实现随机获取匿名用户
     * @return
     */
    List<AnonymousUser> getAnonymousListFromCache();

    /**
     * 更新缓存中的匿名信息
     * @param id
     * @return
     */
    AnonymousUser updateAnonymousCacheList(Integer id);

}
